<template>
  <router-view></router-view>
</template>
<script setup>
import { onBeforeMount } from 'vue';
import useWs from './service/websocket'
import useResult from './service/result'
import useBaseData from './service/baseData';
const websocketStore = useWs()
const resultStore = useResult()
const BaseDataResult = useBaseData()
onBeforeMount(()=>{
  websocketStore.connectToWebSocket()
  //初始化设置
  BaseDataResult.setPara(resultStore.fetchAllResult)
})
</script>
<style>
body{
  overflow: hidden;
}
</style>
